﻿Public Class SanPhamBL
    Private spDA As SanPhamDA

    Public Sub New()
        spDA = New SanPhamDA
    End Sub

    Public Function GetData(ByVal dieukien As String) As List(Of SanPhamDT)
        Return spDA.GetData(dieukien)
    End Function

    Public Function InUp(ByVal sp As SanPhamDT, ByVal flag As Boolean) As Boolean
        Return spDA.InUp(sp, flag)
    End Function

    Public Function UpState(ByVal sp As SanPhamDT)
        Return spDA.UpState(sp)
    End Function

    Public Function Delete(ByVal sp As SanPhamDT)
        Return spDA.Delete(sp)
    End Function

    Public Function GetID()
        Return spDA.GetID()
    End Function

    Public Function isSelling(ByVal ma As Integer)
        Return spDA.IsSelling(ma)
    End Function

    Public Function getTriGia(ByVal maloai As Integer)
        Return spDA.getTriGia(maloai)
    End Function
End Class
